package com.ricchieri.service;

import java.io.Serializable;
import java.util.List;

import org.springframework.transaction.annotation.Transactional;

import com.ricchieri.dao.interf.IUserEmailDao;
import com.ricchieri.filter.BasicFilter;
import com.ricchieri.model.UserEmail;
import com.ricchieri.service.interf.IUserEmailService;

@Transactional(readOnly = true)
public class UserEmailService implements IUserEmailService, Serializable {
	private static final long serialVersionUID = 1522150796360216239L;
	
	IUserEmailDao userEmailDao;
	
	@Override
	@Transactional(readOnly = true)
	public List<UserEmail> getAllUserEmail() {
		BasicFilter filter = new BasicFilter();
		return userEmailDao.getAllUserEmail(filter);
	}

	public IUserEmailDao getUserEmailDao() {
		return userEmailDao;
	}

	public void setUserEmailDao(IUserEmailDao userEmailDao) {
		this.userEmailDao = userEmailDao;
	}
}
